package com.lx.service;

import com.lx.entity.News;
import com.lx.util.PageInfo;

import java.util.List;
import java.util.Map;

public interface NewsService {

    List<News> getAllNews();


    PageInfo<News> getPageInfo(Map<String,Object> params);


    News selectById(int id);

    News getNewsByTitle(String title);

    boolean addNews(News news);

    boolean updateNews(News news);

    boolean delNews(int id);
}
